﻿package com.gamemeal.facebook {
	/**
	 * @author Colin
	 */
	public class Auth {
		public static function createToken(api_key:String,v:String):Array{
			var ary:Array = new Array();
			ary['method']='facebook.auth.createToken';
			ary['api_key']=api_key;
			ary['v']=v;
			return ary;
		}

		public static function getSession(api_key:String,v:String,auth_token:String,format:String="XML",callback:String=""):Array{
			var ary:Array = new Array();
			ary['method']='facebook.auth.getSession';
			ary['api_key']=api_key;
			ary['v']=v;
			ary['auth_token']=auth_token;
			ary['format']=format;
			if(callback!="")ary['callback']=callback;
			return ary;
		}
	}
}
